<?php if($featued){?>



<ul class="list-group ">
	<?php foreach ($featued as $featued):?>
	<li class="list-group-item premium-bg  clearfix"><img
		class="col-lg-2 img-rounded img-responsive" alt="Responsive image"
		src="<?=base_url();?>assets/images/photo/<?= $featued->photo; ?>">

		<div class="col-lg-8">
			<h4 class="list-group-item-heading">
				<a class="text-danger" href="<?= base_url();?>profile/<?= $this->commoncall->url($featued->title);?>-<?= $featued->id;?>"><strong><?= $featued->title; ?> </strong>
				</a>
			</h4>

			<div class="text-muted">
				<strong> <?= $featued->address1 ? $featued->address1 : ''; ?> <?= $featued->address2 ? ", ".$featued->address2 : ''; ?>
				</strong>

				<div class="text-info">
					<?= $featued->city != '' ? $this->location_model->get_city_data($featued->city)->cityname : ''; ?>
					<?= $featued->state != '' ? ", ".$this->location_model->get_region_data($featued->state)->statename : ''; ?>
				</div>
			</div>

			<p>
			
			
			<ul class="list-inline small">
				<span>Area :</span>
				<?php
				$keyword = $this->listing_model->getKeywordAll($featued->id,10);
				?>
				<?php if($keyword){?>
				<?php foreach($keyword as $keyword):?>
				<a class="small text-muted" href="<?= base_url()."browse/practice/".$this->commoncall->url($this->listing_model->getCategory($keyword->term_value)->name)."-".$keyword->term_value; ?>"><?= $this->listing_model->getCategory($keyword->term_value)->name; ?>,</a>
				<?php endforeach;}?>
			</ul>
			</p>
			<?php 
						$review_overall = $this->listing_model->getRatting($featued->id);
						?>
						<?php if($review_overall){?>
						
									<?php 
									$rating = $review_overall->experience;
									for ($i = 1; $i <= $rating; $i++) { ?>
									<img alt="ratting"
										src="<?= base_url(); ?>assets/images/star1.jpg" />
									<?php }
									for ($i = 1; $i <= 5 - $rating; $i++) { ?>
									<img alt="ratting"
										src="<?= base_url(); ?>assets/images/star0.jpg" />
									<?php } ?>
											(<?= $this->listing_model->count_reviews($featued->id);?>)
					
					<?php }else{?>
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						(<?= $this->listing_model->count_reviews($featued->id);?>)
						<?php }?>
						reviews
		</div>
<!--
		<div class="col-lg-2 pull-right">
			<div class="class="badge"">
				<span class="ratting"></span>
				<span class="ratting"></span>
				<span class="ratting"></span>
				<span class="ratting"></span>
			</div>
			 <div class="small">52 reviews</div>
		</div>-->
	</li>
	<?php endforeach;?>

</ul>



<?php }?>